Skip to content

docs: add AGENTS.md and reorganize project documentation#6871

Open
Sunny6889 wants to merge 12 commits into
tronprotocol:developfrom
Little-Peony:fix_readme
Open

docs: add AGENTS.md and reorganize project documentation#6871
Sunny6889 wants to merge 12 commits into
tronprotocol:developfrom
Little-Peony:fix_readme

Conversation

@Sunny6889

@Sunny6889 Sunny6889 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

  • Adds AGENTS.md — a concise build/test/architecture guide for AI coding assistants and new contributors, with the high-frequency constraints to respect.
  • Adds a Documentation index to the README linking every guide.
  • Moves the protobuf protocol doc and METRICS_CHANGELOG.md into docs/ with consistent lower-case names; marks two outdated protocol copies as superseded.
  • Adds Super-Representative private-key security notes to the config guide.
  • Removes unused CI configs (.codeclimate.yml, sonar-project.properties, stale Sonar entries in verification metadata) and the .dockerignore file.

Why are these changes required?

  • No single entry point told contributors (or AI assistants) how to build, test, and navigate the codebase, or which invariants must not be broken.
  • Several guides existed but were unlinked from the README; the protocol doc and metrics changelog cluttered the repo root and the proto tree.
  • Two 2022-era protocol copies gave no hint they were stale.
  • The config guide never warned that a plaintext block-producing key can leak via file permissions or be committed to Git.
  • .codeclimate.yml / sonar-project.properties are no longer used by CI.

This PR has been tested by:

  • Unit Tests — N/A (docs + config-file removal only; no code paths touched)
  • Manual Testing — verified every claim in AGENTS.md against the build config and sources, and that all moved paths and cross-doc links resolve

Follow up

None.

Extra details

@abn2357

abn2357 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Two issues and one optional naming nit as below, please consider whether modifications are required.:

  • Reconcile the remaining Sonar references

    This PR removes .codeclimate.yml and sonar-project.properties because they are no longer used by CI, but Sonar-related references remain:

    • framework/build.gradle:3 still applies org.sonarqube.
    • CONTRIBUTING.md:150 says that the Sonar scanner is automatically triggered for pull requests.
    • CONTRIBUTING.md:161 requires contributions to pass the Sonar scanner test.

    Please update CONTRIBUTING.md to reflect the current CI process.

  • Fix the relative source link after moving the metrics changelog

    After moving METRICS_CHANGELOG.md into docs/, the link to common/src/main/java/org/tron/common/prometheus/ on line 22 now resolves to the non-existent path:

    docs/common/src/main/java/org/tron/common/prometheus/

    Please change the link target from:

    common/src/main/java/org/tron/common/prometheus/

    to:

    ../common/src/main/java/org/tron/common/prometheus/

  • [Nit] Consider using kebab-case consistently

    Most files under docs/ use kebab-case, while metrics_changelog.md uses snake_case. Consider renaming it to metrics-changelog.md for consistency with names such as protobuf-protocol-document.md.

@Sunny6889

Copy link
Copy Markdown
Contributor Author

Two issues and one optional naming nit as below, please consider whether modifications are required.:

  • Reconcile the remaining Sonar references
    This PR removes .codeclimate.yml and sonar-project.properties because they are no longer used by CI, but Sonar-related references remain:

    • framework/build.gradle:3 still applies org.sonarqube.
    • CONTRIBUTING.md:150 says that the Sonar scanner is automatically triggered for pull requests.
    • CONTRIBUTING.md:161 requires contributions to pass the Sonar scanner test.

    Please update CONTRIBUTING.md to reflect the current CI process.

  • Fix the relative source link after moving the metrics changelog
    After moving METRICS_CHANGELOG.md into docs/, the link to common/src/main/java/org/tron/common/prometheus/ on line 22 now resolves to the non-existent path:
    docs/common/src/main/java/org/tron/common/prometheus/
    Please change the link target from:
    common/src/main/java/org/tron/common/prometheus/
    to:
    ../common/src/main/java/org/tron/common/prometheus/

  • [Nit] Consider using kebab-case consistently
    Most files under docs/ use kebab-case, while metrics_changelog.md uses snake_case. Consider renaming it to metrics-changelog.md for consistency with names such as protobuf-protocol-document.md.

very good suggestion, will fix all.

Comment thread framework/build.gradle
@halibobo1205
halibobo1205 self-requested a review July 14, 2026 10:24
@Sunny6889
Sunny6889 changed the base branch from release_v4.8.2 to develop July 16, 2026 05:56
@halibobo1205 halibobo1205 removed this from the GreatVoyage-v4.8.2 milestone Jul 17, 2026
@Sunny6889 Sunny6889 changed the title docs: reorganize documentation and remove stale CI configs docs: add AGENTS.md and reorganize project documentation Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants